<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="b" uri="http://java.sun.com/jstl/core_rt"%> 
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %> 	

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Register</title>
</head>
<body>
	<h1>Register!</h1>
				<form:form method="POST" modelAttribute="registerUser">	
				<div>
					 <label>用户名</label>
					 <form:input path="userName" placeholder="用户名" required="required" autofocus="autofocus"/>
         			 <form:errors path="userName" ></form:errors>
				</div>
				<div>
					<label>密码</label>
					<form:password  path="password" placeholder="密码" required="required"/>
          			<form:errors path="password"></form:errors>
				</div>
				<div>
					<label>确认密码</label> 
					<input type="password" name="confirmPassword" />
				</div>
				<div>
					<label>员工ID</label> 
					<form:input  path="employeeId" />
					<form:errors path="employeeId" />
				</div>
				<div>
					<label>电话号码</label>
					<form:input  path="userPhone" />
					<form:errors path="userPhone" />
				</div>
				<div>
				<button type="submit" >注册</button>
				
				</div>
				</form:form>
				<button onclick="back()">返回</button>
	<script>  
	 function back(){
		 window.location.href='<%=basePath%>account/manageUser';
     } 
    </script>
</body>
</html>